﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;

namespace DARE
{
    public class CXnaMouseProvider : IInputProvider<MouseState>
    {
        #region Fields

        private bool m_mouseEnable = true;

        #endregion

        public Microsoft.Xna.Framework.Input.MouseState GetState()
        {
            return Mouse.GetState();
        }

        public bool Enabled
        {
            get { return m_mouseEnable && CDare.Instance.Game.IsActive; }
            set
            {
                if (m_mouseEnable != value)
                {
                    m_mouseEnable = value;
                }
            }
        }
    }
}
